<template>
	<barLayout navTitle="成绩详情" isBack>
		<view class="scoreDetail flex-main">
			<view class="main">
				<view class="title">报告详情</view>
				<view class="content">
					<view class="ropeSkip">完成成绩</view>
					<view class="ropeSkipNum">
						{{ project.sportResult || '0' }}
						<text class="unit">{{ project.sportUnit }}</text>
					</view>
					<view class="list">
						<view class="list-item">
							<view>得分</view>
							<view class="item-value">{{ project.sportScore || '--' }}</view>
						</view>
						<view class="list-item">
							<view>等级</view>
							<view class="item-value">{{ project.sportRankName || '--' }}</view>
						</view>
						<!-- 	<view class="list-item">
							<view>平均心率（bpm）</view>
							<view class="item-value">132</view>
						</view> -->

						<view class="list-item">
							<view>项目</view>
							<view class="item-value">{{ project.sportName || '--' }}</view>
						</view>
						<view class="list-item">
							<view>完成时间</view>
							<view class="item-value">{{ timeFormate(project.timeSequence, '002') || '--' }}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</barLayout>
</template>

<script>
import barLayout from '@/pages/layout/barLayout.vue';
import { timeFormate } from '@/utils/util.js';
export default {
	components: {
		barLayout
	},
	data() {
		return {
			projectName: '一分钟跳绳',
			project: null
		};
	},
	onLoad(parms) {
		if (parms && parms.project) {
			this.project = JSON.parse(parms.project);
		}
	},
	methods: {
		timeFormate
	}
};
</script>

<style></style>
